<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="{:U('Auth/department')}" >部门管理</a>
				<a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<button class="btn btn-info" id="add">新 增</button>
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="hidden" name="department_id" value="{:I('department_id')}"/>
				<input type="text" name="team_name" class="search-input" value="{:strip_tags(I('team_name'))}" placeholder="请输入小组名称" style="margin-bottom:0;"><button class="btn btn-info" id="search_button" url="{:U('Auth/team')}"><i class="icon-search icon-white"></i></button>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<table class="table table-bordered table-striped with-check">
							<thead>
								<tr>
									<th><input type="checkbox" disabled/></th>
									<th>序号</th>
									<th>名称</th>
									<th>创建时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							<notempty name="_list">
								<volist name="_list" id="vo">
									<tr>
										<td class="taskStatus"><input type="checkbox" value="{$vo.team_id}" name="ids[]" class="ids" disabled/></td>
										<td class="taskStatus">{$i}</td>
										<td class="taskStatus"><a href="{:U('editTeam?team_id='.$vo['team_id'])}"  title="编辑小组">{$vo.team_name|htmlspecialchars|msubstr=###,0,10}</a></td>
										<td class="taskStatus">{$vo.create_time|time_format}</td>
										<td class="taskStatus">
											<a title="成员" href="{:U('teamMember?team_id='.$vo['team_id'])}"><i class="icon-user-md"></i> 成员</a>
											<a href="{:U('editTeam?team_id='.$vo['team_id'])}"><i class="icon-edit"></i> 编辑</a>
											<a href="{:U('teamRemove',array('id'=>$vo['team_id']))}" class="confirm ajax-get"><i class="icon-remove"></i> 删除</a>
										</td>
									</tr>
								</volist>
							<else/>
								<tr>
									<td colspan="11" class="taskStatus"> Oh~亲爱滴,暂时还没有内容! </td>
								</tr>
							</notempty>
							</tbody>
						</table>
						<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
							{$_page}
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function (){
	//新增跳转页面
	$('#add').click(function(){
		window.location.href="{:U('Auth/addTeam',array('department_id'=>I('department_id')))}";
	});
	/* set_value("activity_category_id","{:I('activity_category_id','')}");
	set_value("marking_status","{:I('marking_status','')}"); */
});
//导航高亮
highlight_subnav("{:U('Auth/department')}");
</script>
</block>